package com.hxzy.shop.fallback.member;

import com.github.pagehelper.PageInfo;
import com.hxzy.shop.dto.member.req.LabelListsReq;
import com.hxzy.shop.dto.member.req.MemberCardListsReq;
import com.hxzy.shop.dto.member.req.MemberDetailsReq;
import com.hxzy.shop.dto.member.req.MemberListsReq;
import com.hxzy.shop.dto.member.resp.LabelListsResp;
import com.hxzy.shop.dto.member.resp.MemberDetailResp;
import com.hxzy.shop.dto.member.resp.MemberLabelResp;
import com.hxzy.shop.dto.member.resp.MemberListsResp;
import com.hxzy.shop.feign.member.MemberFeign;
import com.hxzy.shop.vo.Result;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @Desc
 * @Date 2023/8/4
 */
@Component
public class MemberFallBack implements MemberFeign {

    @Override
    public Result<PageInfo<MemberListsResp>> memberLists(MemberListsReq req) {
        return Result.failed();
    }

    @Override
    public Result<MemberDetailResp> memberDetails(MemberDetailsReq req) {
        return Result.demotion();
    }

    @Override
    public Result<Map<String, Object>> memberCardLists(MemberCardListsReq req) {
        return Result.demotion();
    }

    @Override
    public Result<LabelListsResp> labelLists(LabelListsReq req) {
        return Result.demotion();
    }

    @Override
    public Result<List<MemberLabelResp>> getMemberLabel(MemberDetailsReq req) {
        return Result.demotion();
    }
}
